﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Gomoku
{
    public class Checker
    {
        public Vector2 position; //absolute position
        public FieldType type;
        public int indexX; //X index in table
        public int indexY; //Y index in table

        public Checker(Vector2 position, FieldType type, int indexX, int indexY)
        {
            this.position = position;
            this.type = type;
            this.indexX = indexX;
            this.indexY = indexY;
        }

        public Checker(int indexX, int indexY)
        {
            this.position = Vector2.Zero;
            this.type = FieldType.EMPTY;
            this.indexX = indexX;
            this.indexY = indexY;
        }
    }
}
